<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>查看停车记录详情</title>
</head>
<body>
<div class="layui-card">
    <div class="layui-card-body">
        <table class="layui-table">
            <tr>
                <th>车牌号</th>
                <td><?php echo htmlentities($vo['plate_number'] ?? '', ENT_QUOTES); ?></td>
            </tr>
            <tr>
                <th>进入时间</th>
                <td><?php echo htmlentities($vo['entry_time'] ?? '', ENT_QUOTES); ?></td>
            </tr>
            <tr>
                <th>离开时间</th>
                <td><?php echo htmlentities($vo['exit_time'] ?? '', ENT_QUOTES); ?></td>
            </tr>
            <tr>
                <th>免费时长</th>
                <td><?php echo htmlentities($vo['free_hours'] ?? '', ENT_QUOTES); ?></td>
            </tr>
            <tr>
                <th>费用</th>
                <td><?php echo htmlentities($vo['fee'] ?? '', ENT_QUOTES); ?></td>
            </tr>
            <tr>
                <th>支付状态</th>
                <td><?php echo !empty($vo['payment_status']) ? '已支付' : '未支付'; ?></td>
            </tr>
            <tr>
                <th>付款时间</th>
                <td><?php echo htmlentities($vo['payment_time'] ?? '', ENT_QUOTES); ?></td>
            </tr>
            <tr>
                <th>是否离场</th>
                <td><?php echo $vo['is_exited'] == 2 ? '已离场' : '在场'; ?></td>
            </tr>
            <tr>
                <th>类型</th>
                <td>
                    <?php switch($vo['type']): case "1": ?>员工<?php break; case "2": ?>访客<?php break; case "3": ?>临时车辆<?php break; default: ?>-<?php endswitch; ?>
                </td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
